# Author:Zhang Yu
import threading
import time
import random

def run(n):
    time.sleep(random.randint(1,4))
    print("task ", n)


if __name__ == '__main__':
    t1 =threading.Thread(target=run,args=("t1",))
    t2 = threading.Thread(target=run, args=("t2",))
    t1.start()
    t2.start()